import axios from 'axios';
import { req } from './axiosFun';

/*管理员列表需要的方法*/
export const managerList = (params) =>{return req("post","/management-personnel/leyou.personnel/administrators-manager/managerList",params)}
export const managerInsert = (params) =>{return req("post","/management-personnel/leyou.personnel/administrators-manager/managerInsert",params)}
export const managerDel = (params) =>{return req("post","/management-personnel/leyou.personnel/administrators-manager/managerDel",params)}
export const resetManagerPassword = (params) =>{return req("post","/management-personnel/leyou.personnel/administrators-manager/resetManagerPassword",params)}
export const getGenerateManagerAccountNumber = () =>{return req("post","/management-personnel/leyou.personnel/administrators-manager/getGenerateManagerAccountNumber","")}
export const roleList= () =>{return req("post","/management-personnel/leyou.personnel/administrators-role/roleList","")}

/*角色列表需要的列表*/
export const authorityList=() =>{return req("post","/management-personnel/leyou.personnel/administrators-authority/authorityList","")}
export const roleListShow=(params) =>{return req("post","/management-personnel/leyou.personnel/administrators-role/roleListShow",params)}
export const roleInsert=(params) =>{return req("post","/management-personnel/leyou.personnel/administrators-role/roleInsert",params)}
export const roleDel=(params) =>{return req("post","/management-personnel/leyou.personnel/administrators-role/roleDel",params)}
export const roleEmpowerEcho=(params) =>{return req("post","/management-personnel/leyou.personnel/administrators-role/roleEmpowerEcho",params)}
export const roleEmpowerModify=(params) =>{return req("post","/management-personnel/leyou.personnel/administrators-role/roleEmpowerModify",params)}


